using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Testing : MonoBehaviour
{
    [SerializeField] private Unit unit;
    //[SerializeField] private Transform gridDebugPrefab;

    //private GridSystem gridSystem;

    // Start is called before the first frame update
    void Start()
    {
        //gridSystem = new GridSystem(10, 10, 2f);

        //gridSystem.CreateDebugObject(gridDebugPrefab);
    }

    private void Update()
    {
        //Debug.Log(gridSystem.GetGridPosition(MouseWorld.GetPosition()));
        //if (Input.GetKeyDown(KeyCode.K))
        //{
        //    GridSystemVisual.Instance.HideAllGridPosition();

        //    GridSystemVisual.Instance.ShowGridPosition(unit.GetMoveAction().GetVaildActionGridPositionList());

        //}

        //if(Input.GetKeyDown(KeyCode.T))
        //{
        //    GridPosition mouseGridPosition = LevelGrid.Instance.GetGridPosition(MouseWorld.GetPosition());
        //    GridPosition startGridPosition = new GridPosition(0, 0);

        //    List<GridPosition> gridPositionList = PathFinding.Instance.FindPath(startGridPosition, mouseGridPosition);

        //    for(int i=0;i<gridPositionList.Count - 1;i++)
        //    {
        //        Debug.DrawLine(LevelGrid.Instance.GetWorldPosition(gridPositionList[i]),
        //            LevelGrid.Instance.GetWorldPosition(gridPositionList[i + 1]), Color.white, 10f);
        //    }
        //}
    }
}

